package liming.tool.handle.net.tcp.socket;

import liming.tool.handle.ReceiveMap;
import liming.tool.handle.net.root.NetReceiveMap;
import liming.tool.handle.net.root.base.NetType;

import java.net.InetAddress;

public class TcpReceiveMap extends NetReceiveMap {
    public TcpReceiveMap() {
        super();
        netType = NetType.TCP;
    }

    public TcpReceiveMap(ReceiveMap receiveMap) {
        super(receiveMap);
        netType = NetType.TCP;
    }

    @Override
    public TcpReceiveMap setIP(InetAddress inetAddress, int port) {
        super.setIP(inetAddress, port);
        return this;
    }

    @Override
    public String toString() {
        return "TcpReceiveMap{" +
                "," + super.toString() +
                '}';
    }
}
